Small Website to play Web-based games.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
343 B

  1. import type { NextPage } from 'next'
  2. import {GetServerSideProps} from 'next';
  3. const GameLandingPage: NextPage = () => null
  4. export const getServerSideProps: GetServerSideProps = async (ctx) => {
  5. return {
  6. redirect: {
  7. destination: `/games/${ctx.query.id}/play`,
  8. permanent: false,
  9. },
  10. };
  11. }
  12. export default GameLandingPage